package com.game.websockt;

public class MessageJson {

	private String from;
	private String to;
	private MsgType   type;
	private String msg;
	private String time;
	private String code;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String getTo() {
		return to;
	}
	public void setTo(String to) {
		this.to = to;
	}
	public MsgType getType() {
		return type;
	}
	public void setType(MsgType type) {
		this.type = type;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	
	public enum MsgType {
		CHAT_SINGLE_MSG,CHAT_GROUP_MSG,LOGIN,OFFLINE,ONLINE,GETDATA,GET_USER_GROUP
	}
}
